function H5Logger() {

}
AMap.plugin('AMap.CitySearch', function () {
    var iplocation = new AMap.CitySearch();
    iplocation.getLocalCity(function (status, result) {
        if (status == 'complete') {
            province = result.province;
            city = result.city;
            ip = returnCitySN["cip"]
            var ua = navigator.userAgent;
            var itemId = $("#item").val();
            $.ajax({
                url: rootUrl + '/gateway/put',
                method: 'post',
                dataType: 'json',
                contentType: 'application/json',
                data: JSON.stringify({ ip: ip, channelItem: itemId, district: province + "/" + city, ua: ua}),
                success: function (response) {
                    if(response.code !== 200) {
                        console.log("something error");
                    }
                }
            })
        }
    });
});